import {fetch} from '../utils/fetch.js'
import qs from 'qs';
export function loginByName(username, password) {
  return fetch({
    url: '/user/login',
    method: 'post',
    data: {
      username,
      password
    }
  });
}